package com.itheima.integer;

public class Test2 {
    public static void main(String[] args) {
        //方案一(重点掌握)
        String a = "100";
        int d1 = Integer.valueOf(a);
        String b =String.valueOf(d1);
        //方案二
        String c = "200";
        int d2 = Integer.parseInt(c);
        String b1 = d2 + "";

        Integer i1 = 150;
        Integer i2 = 150;
        System.out.println(i1 == i2);

        Integer i3 = 100;
        Integer i4 = 100;
        System.out.println(i3 == i4);
    }
}
